package com.cy.myblog.pageModel;

import java.util.Date;

public class User implements java.io.Serializable{

	private static final long serialVersionUID = -7746178707102496962L;

	private String id;
	private String account;
	private String password;
	private String realname;
	private String name;
	private Date birthdate;
	private Character sex;
	private String phone;
	private String qq;
	private String homepage;
	private String interests;
	private String email;
	private Date creatime;
	private Date logintime;
	private String ipaddress;
	private Integer state;
	
	public User(){}
	
	public User(String account,String pwd){
		this.account=account;
		this.password=pwd;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getBirthdate() {
		return birthdate;
	}
	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}
	public Character getSex() {
		return sex;
	}
	public void setSex(Character sex) {
		this.sex = sex;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getHomepage() {
		return homepage;
	}
	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}
	public String getInterests() {
		return interests;
	}
	public void setInterests(String interests) {
		this.interests = interests;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Date getCreatime() {
		return creatime;
	}
	public void setCreatime(Date creatime) {
		this.creatime = creatime;
	}
	public Date getLogintime() {
		return logintime;
	}
	public void setLogintime(Date logintime) {
		this.logintime = logintime;
	}
	public String getIpaddress() {
		return ipaddress;
	}
	public void setIpaddress(String ipaddress) {
		this.ipaddress = ipaddress;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", account=" + account + ", password="
				+ password + ", realname=" + realname + ", name=" + name
				+ ", birthdate=" + birthdate + ", sex=" + sex + ", phone="
				+ phone + ", qq=" + qq + ", homepage=" + homepage
				+ ", interests=" + interests + ", email=" + email
				+ ", creatime=" + creatime + ", logintime=" + logintime
				+ ", ipaddress=" + ipaddress + ", state=" + state + "]";
	}
	
}
